<?php $this->load->view('admin/public/head.html', array('css' => array(
'/assets/admin/css/admin/common.css'
))); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" ng-controller="admin-cashin-list-controller">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            资金管理
            <small>用户资金流管理模块</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台首页</a></li>
            <li class="active">提现列表</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">

            <div class="col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">充值记录</h3>
                        <div class="box-tools"></div>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table class="table table-striped">
                            <tr>
                                <th class="text-center" style="width: 50px">#</th>
                                <th class="text-center" style="width: 80px;">用户</th>
                                <th class="text-center" style="width: 80px;">套餐名称</th>
                                <th class="text-center">充值金额</th>
                                <th class="text-center">交易单号</th>
                                <th class="text-center" style="width: 60px;">终端</th>
                                <th class="text-center" style="width: 80px;">充值渠道</th>
                                <th class="text-center" style="width: 140px;">充值时间</th>
                                <th class="text-center" style="width: 100px;">状态</th>
                                <th class="text-center" style="width: 60px;">操作</th>
                            </tr>
                            <tr ng-hide="!lists.length" ng-repeat="l in lists">
                                <td class="text-center" ng-bind="l.id"></td>
                                <td class="text-center">
                                    <a href="/user/detail/index?id={{ l.userid }}" ng-bind="l.nickName"></a>
                                </td>
                                <td class="text-center" ng-bind="l.name"></td>
                                <td class="text-center" style="color: red;" ng-bind="'￥ ' + l.amount_format"></td>
                                <td class="text-center" ng-bind="l.transaction_id"></td>
                                <td class="text-center">
                                    <span class="fa fa-apple Active" ng-hide="l.client != 'ios'" style="color: #d2d6de;"></span>
                                    <span class="fa fa-android" ng-hide="l.client != 'android'" style="color: #00c0ef;"></span>
                                    <span class="fa fa-weixin" ng-hide="l.client != 'wx'" style="color:#00a65a;"></span>
                                </td>
                                <td class="text-center" ng-bind="l.source == 'wechat' ? '微信支付' : '支付宝'">

                                </td>
                                <td class="text-center" ng-bind="l.created"></td>
                                <td class="text-center" style="color: green;">
                                    充值成功
                                </td>
                                <td class="text-center">
                                    <a class="btn btn-link btn-xs" href="javascript:void(0);" ng-click="edit(m)"><i class="fa fa-pencil"></i> 管理</a>
                                </td>
                            </tr>
                            <tr ng-show="!lists.length">
                                <td colspan="10" class="text-center">
                                    <p class="help-block">暂无记录</p>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>

        </div>
    </section>
    <!-- /.content -->

    <!-- 模态框 -->
    <div class="modal fade" id="testModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">驳回意见</h4>
                </div>
                <div class="modal-body">

                    <div class="row">
                        <div class="col-md-12">
                            <!-- form start -->
                            <form class="form-horizontal">
                                <div class="box-body">
                                    <div class="form-group">
                                        <textarea class="form-control" ng-model="rejectRemark" rows="5" placeholder="请填写驳回理由..."></textarea>
                                    </div>
                                </div>
                                <!-- /.box-body -->
                            </form>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" ng-click="doReject(selectRejectIndex)">确认驳回</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
    <!-- /.modal -->
</div>
<!-- /.content-wrapper -->
<?php $this->load->view('admin/public/foot.html', array(
    'js' => array(
        '/assets/admin/js/money/cashin_list.js'
    )
)); ?>
